# _*_coding:utf-8_*_
__author__ = 'gerry'


def login2(func):
    def wrapper(arg):
        print "running user authentication"
        user = raw_input("login:").strip()
        if user == "alex":
            print("--welcome login ---")
            return func(arg)
    return wrapper


@login2
def task(name):
    print("run task2", name)
    return name
task("gerry")







